import React, { Component } from 'react'
import ChatList from '../components/ChatList_c';
import Header from '../components/IndexHeader_c'

export default class chatPage extends Component {
    handleClick = ()=>{
        this.props.history.push('/service?袁伟:伍豪')
    }
    handleClick2 = ()=>{
        this.props.history.push('/service?伍豪:袁伟')
    }
    handleClick3 = ()=>{
        this.props.history.go(-1)
    }
    render() {
        return (
            <div>
                <Header onClick={this.handleClick3}>消息</Header>
                <ChatList onClick={this.handleClick} src="header.jpg" time="上午7:00" username="一米阳光" msg="您好,您发布的房子"></ChatList>
                <ChatList onClick={this.handleClick2}  src="header2.jpg" time="上午7:00" username="安静" msg="您好,您发布的房子"></ChatList>
            </div>
        )
    }
}
